<html>
<head>
<title>.::adminEdit::.</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head>
<body>
<?
    if(isset($_SESSION[_Session.'_staff_id'])){
?>
    <form name="adminEdit" method="post" action="/regisonline/template?phppage=logout.php">    
      <table width="400" border="2" align="center" cellspacing="2" bordercolor="#000000" bgcolor="#FFFFFF" style="width: 400px">        
   <tr>
     <td width="150" height="100" align="center" bordercolor="#000000" ><image src="/regisonline/resources/images/gif/logo.jpg" width="150" height="100" align="center" title="โลโก้โรงเรียนเวียงเจดีย์วิทยา"/></td>
       <td width="250" align="center" bordercolor="#000000" ><a href='/regisonline/template?phppage=regisform.php'> <image src="/regisonline/resources/images/gif/gif5.bmp" width="250" height="100" border="0" align="center" title="Click เพื่อเข้าสู่ระบบสมัครเรียนออนไลน์>>"/></a></td>
   </tr>
    <tr><td colspan="2" height="40" >
      <div align="center"><a href="/regisonline/template?phppage=adminedit.php&editPrt" > <image src="/regisonline/resources/images/gif/gif1.bmp" width="100%" height="100%" /></a></div></td></tr>
    <tr><td colspan="2" height="40" >
      <div align="center"><a href="/regisonline/template?phppage=adminedit.php&searchPrt"> <image src="/regisonline/resources/images/gif/gif2.bmp" width="100%" height="100%" /></a></div></td></tr>
    <tr><td colspan="2" height="40" >
      <div align="center"><a href="/regisonline/template?phppage=adminedit.php&report"> <image src="/regisonline/resources/images/gif/gif3.bmp" width="100%"  height="100%" /></a></div></td></tr>
    <tr>
<!--    <tr><td colspan="2"  >
      <div align="center"><input type="button" name="btAddStaff"  style="width:100%;" value="เพิ่มเจ้าหน้าที่"/></div></td></tr>-->
    <tr>        
<?        
    $login = new MySQL(_MySQL);
    $eduyear = date(Y)+543;
//    echo $eduyear;
	$login->Query("select count(regisid) as ctregis from regis where eduyear = '".$eduyear."'");   
	if($login->Num()>0){
		$ret = $login->FObject();
                $_SESSION[_Session.'_ctregis'] = $ret->ctregis;
        }
?>        
    <br><td align="center" colspan="2"><div align="center">
            <input type="hidden" name ="btStatic" value="" style="width:100%"/>
      <p>
        ขณะนี้มีจำนวนผู้สมัครทั้งหมด : 
        <?=$ret->ctregis."&nbsp;ราย ประจำปีการศึกษา ".$eduyear;?>
      </p>
    </div></td>
    </tr>   
    <tr>
    <td height="30" colspan="2" align="center"><div align="center">
      <input type="image" name="Submit" src="/regisonline/resources/images/gif/gif4.bmp" width="130" height="30" />
    </div></td>
    </tr>    
  </table>  
</form>
<?
        if(isset($_GET['editPrt'])){
        include("editPrt.php");
        }
        if(isset($_GET['report'])){
            include("report.php");
        }
        if(isset($_GET['searchPrt'])){
            include("searchPrt.php");
        }
    }else{
?>
    <script>
            alert("Please Login Before!")
            window.location="/regisonline/template?phppage=home.php&logout";
    </script>
<?
    }
?>
</body>
</html>